/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package initial;

/**
 *
 * @author Matrix
 */
class Init {
    Init(int i) {
        System.out.print("Init" + i + " ");
    }
}

class Man {
    int age;
    Man() {
        age = 0;
        System.out.println("Created new Man");
    }
    Man(int age) {
        this.age = age;
        System.out.println("Created Man, they" + age + "is old");
    }
    void getInfo() {
        System.out.println(age);
    }
}
public class Demo {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        for (int j = 1; j < 10; j++) {
            new Init(j);
        }
        Init X = new Init(5);
        System.out.println();
        new Man();
        new Man(35);
        Man man = new Man(35);
        man.getInfo();

    }

}
